package samples.spring.step1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import samples.spring.beans.User;

/**
 * Spring Ioc测试
 */
public class SpringAppStep1 {

    public static final Logger LOGGER = LoggerFactory.getLogger(SpringAppStep1.class);

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:step1/step1.xml");
        LOGGER.info("==============classpathxmlapplicationcontext create completed.");
        User user = context.getBean(User.class);
        LOGGER.info("=============={}", user);
    }
}
